<!DOCTYPE html>
<html lang="zh">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="keywords" content="">
	<meta name="description" content="">
	<title>Rui</title>
	<style type="text/css">
	h1{font:700 70px/70px 'courier New';}h2{font-family:tahoma;font-size:14px;}
	</style>
	<script type="text/javascript" src="core.js"></script>

</head>
 
<body>
<div id="doc">
	<div id="hd"><h1>RUI.{</h1><h2>Cross-browser Rich Application Library</h2></div>
	<div id="bd">

	</div>
	<div id="ft"></div>
</div>
<script type="text/javascript">
	//模块路径配置
	/*
	 * 强制维护依赖关系 为减少书写造成的误会
	 * 配置路径，default  /Env.path/mod/mod.js
	 */
	RUI.addModule({
		'case-1':{
			path: 'js/1.js'
		},
		'case-2-1':{
			path: 'js/2-1.js'
		},
		'case-2-2':{
			path: 'js/2-2.js'
		},
		'case-3':{
			path: 'js/3.js'
		},
		'case-4':{
			path: 'js/4.js'
		},
		'case-4-css':{
			path: 'js/4.css'
		}
	});
	RUI.define('demo',function(R){
	
		R.log('demo ------------------------ Loaded','','info');
	
	},{require:['base','case-2-1']});
	RUI.define('base',function(R){
	
		R.log('base ------------------------ Loaded','','info');
	
	});
	/*
	RUI.ready(function(R){
		R.log('{{ require base module }}');
	},{require:['demo']});
	
	
	RUI.ready(function(R){
		R.log('[[ Sandbox start work ]]');
	},{require:['case-1']});
	
	RUI.ready(function(R){
		R.log('DOMReady1');
	},{require:['base']});
	
	RUI.ready(function(R){
		R.log('DOMReady');
	},{require:['case-3']});
	*/
	RUI.ready(function(R){
		R.namespace('R.Demo.xx');
		// k = function(){alert(1)};
		R.log(R.merge(R.Demo,{y:2}));
		var jjb = {k:1};
		
		var _a = [1,2,3,4];
		var _o = {x1:1,x2:2};
		var L = R.Lang;
		R.log(L.replaceArray(1,2,_a));
		
		L.each(_a,function(a,index){
			R.log(index);
		})
	});
		
</script>

</body>
</html>
